﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainTemplate.Master" AutoEventWireup="true" CodeBehind="ApplicationDeployer.aspx.cs" Inherits="SmartCounters.ApplicationDeployer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ScriptsAndStylesPlaceHolder" runat="server">
	<link rel="stylesheet" type="text/css" href="css/ApplicationDeployer.css" />
	<script type="text/javascript" src="/Scripts/ApplicationDeployer.js"></script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
Application Deployment
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
	<fieldset class="DeployerFieldset shadow">
		<legend>SQL Server and Application Database Details</legend>
		<p class="Description">
			The IP address or server name of the server that contains an instance of MS-SQL server
		</p>
		<div>
			<asp:Label ID="Label3" runat="server">SQL Server Address or Name: </asp:Label>
		</div>
		<div>
			<asp:TextBox class="TextBox" ID="txtSQLServerName" runat="server"></asp:TextBox>
		</div>

		<p class="Description">
			Enter the desired application database name
		</p>
		<div>
			<asp:Label ID="Label6" runat="server">Application Database Name: </asp:Label>
		</div>
		<div>
			<asp:TextBox class="TextBox" ID="txtAppDataBaseName" runat="server"></asp:TextBox>
		</div>

		<p class="Description">
			This is the SQL server administrator user name that will be used to deploy the required
			database tables and functions.
		</p>
		<div>
			<asp:Label ID="Label1" runat="server">SQL Server Administrator Username: </asp:Label>
		</div>
		<div>
			<asp:TextBox class="TextBox" ID="txtSQLAdminUserName" runat="server"></asp:TextBox>
		</div>

		<div>
			<asp:Label ID="Label2" runat="server">SQL Server Administrator Password: </asp:Label>
		</div>
		<div>
			<asp:TextBox class="PasswordBox" ID="txtSQLAdminPassword" TextMode="Password" runat="server"></asp:TextBox>
		</div>

			
	</fieldset>
	<fieldset class="DeployerFieldset shadow">
	<legend>Application User Details</legend>
		<p class="Description">
			Enter the credential of the new SQL user to be created and used by the application
			to access the database.
		</p>
		<div>
			<asp:Label ID="Label4" runat="server">Application Database Username: </asp:Label>
		</div>
		<div>
			<asp:TextBox class="TextBox" ID="txtAppUserName" runat="server"></asp:TextBox>
		</div>

		<div>
			<asp:Label ID="Label5" runat="server">Appliction Database Password: </asp:Label>
		</div>
		<div>
			<asp:TextBox class="PasswordBox" ID="txtAppUserPassword" TextMode="Password" runat="server"></asp:TextBox>
		</div>

		<div>
			<asp:Button class="Button" ID="btDeploy" Text="Deploy Application" runat="server" />
		</div>
	</fieldset>
</asp:Content>